@charset "UTF-8";

html, body {
    width: 100vw;
    height: 100vh;
}

/**====================文本溢出省略=======================**/
.ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =====================图标======================== */
.icon {
    display: block;
}

.icon-delete {
    width: 20px;
    height: 20px;
    background: url(../images/icon-delete.png) no-repeat center center/15px 15px;
}

/**=====================按钮=========================**/
.btn {
    display: inline-block;
    padding: 5px 10px;
    min-width: 50px;
    height: 30px;
    line-height: 30px;
    font-size: 20px;
    background-color: #Fafafa;
    color: #666;
    text-align: center;
    cursor: pointer;
    margin: 0 10px;
    box-sizing: content-box;
}

.btn-add {
    background-color: #2476ff;
    color: #FFF;
}

.btn-delete {
    background-color: chocolate;
    color: #FFF;
}

.btn-edit {
    background-color: #ffb342;
    color: #FFF;
}

.btn-update {
    background-color: #1bffa1;
    color: #FFF;
}

/*===============================遮罩和对话框==============================*/
.mask {
    position: absolute;
    left: 0;
    top: 0;
    /* width: 100vw;
    height: 100vh; */
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.mask.hidden {
    display: none;
}

.mask .dialog {
    position: fixed;
    left: 50%;
    top: 50%;
    min-width: 700px;
    min-height: 500px;
    background-color: #FFF;
    height: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
}

/* =================布局========= */
.mask .dialog .dialog-header {
    height: 50px;
    position: relative;
}

.mask .dialog .dialog-main {
    height: calc(100% - 100px);
}

.mask .dialog .dialog-footer {
    height: calc(50px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mask .dialog .dialog-header .dialog-header__title {
    height: 100%;
    line-height: 50px;
    font-size: 24px;
    color: #898989;
    text-align: center;
}

.mask .dialog .dialog-header .dialog-header__closed {
    position: absolute;
    right: 10px;
    top: 10px;
    /* background-color: #2476ff; */
    width: 20px;
    height: 20px;
    z-index: 1000;
    cursor: pointer;
}

/*============================表单==============================*/
.form {
    width: 100%;
    height: 100%;
}

.form .fieldset {
    display: flex;
    align-items: center;
    width: 100%;
    height: 50px;
}

.form .fieldset .label {
    width: 150px;
    height: 50px;
    line-height: 50px;
    font-size: 20px;
    text-align: right;
    margin-right: 10px;
    color: #898989;
}

.form .fieldset .input-element {
    width: calc(100% - 235px);
    height: 40px;
    margin-right: 50px;
    padding-left: 15px;
    font-size: 18px;
    color: #666;
    outline: none;
    border: 1px solid #e9e9e9;
}

.form .fieldset .input-element.radio-group__wrapper {
    border: none;
}

/* ==========单选============ */
.radio-group__wrapper {
    display: flex;
    align-items: center;

}

.radio-group__wrapper .radio-group {
    width: 100px;
    display: flex;
    align-items: center;
}

.radio-group__wrapper .radio-group .radio-group__value {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.radio-group__wrapper .radio-group .radio-group__label {
    font-size: 18px;
    color: #666;
    margin-left: 20px;
}

/* ===========下拉框================ */
.select-element {
    cursor: pointer;
}

.select-element option {
    /* 无效属性height,line-height*/
    height: 50px;
    line-height: 50px;
    color: rgb(36, 31, 31);
    cursor: pointer;
}